Returns a datagram socket object using the specified port number and bound to the specified inet address object.
Syntax
DatagramSocket( )
DatagramSocket( port )
DatagramSocket( port , inetaddress )
Parameters
port
|
the port number to use.
|
inetaddress
|
the inet address object to bind to.
|
Returns
datagramsocket
|
the new datagram socket object.
|
Example
dgs = DatagramSocket( port, address )
|