Skip to content

Commit 0073a8f

Browse files
committed
Wrap comments at 78, style
1 parent 6388578 commit 0073a8f

File tree

1 file changed

+11
-10
lines changed
  • lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem

1 file changed

+11
-10
lines changed

lib/rex/post/meterpreter/extensions/stdapi/net/socket_subsystem/udp_channel.rb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@ class UdpChannel < Rex::Post::Meterpreter::Datagram
2020
#
2121
# We are a datagram channel.
2222
#
23-
class << self
24-
def cls
25-
return CHANNEL_CLASS_DATAGRAM
26-
end
23+
def self.cls
24+
CHANNEL_CLASS_DATAGRAM
2725
end
2826

2927
#
30-
# Open a new UDP channel on the remote end. The local host/port are optional, if none are specified
31-
# the remote end will bind to INADDR_ANY with a random port number. The peer host/port are also
32-
# optional, if specified all default send(), write() call will sendto the specified peer. If no peer
33-
# host/port is specified you must use sendto() and specify the remote peer you wish to send to. This
34-
# effectivly lets us create bound/unbound and connected/unconnected UDP sockets with ease.
28+
# Open a new UDP channel on the remote end. The local host/port are
29+
# optional, if none are specified the remote end will bind to INADDR_ANY
30+
# with a random port number. The peer host/port are also optional, if
31+
# specified all default send(), write() call will sendto the specified peer.
32+
# If no peer host/port is specified you must use sendto() and specify the
33+
# remote peer you wish to send to. This effectivly lets us create
34+
# bound/unbound and connected/unconnected UDP sockets with ease.
3535
#
36-
def UdpChannel.open(client, params)
36+
# @return [Channel]
37+
def self.open(client, params)
3738
c = Channel.create(client, 'stdapi_net_udp_client', self, CHANNEL_FLAG_SYNCHRONOUS,
3839
[
3940
{

0 commit comments

Comments
 (0)