Python Forum
Question concerning function of a a socket
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question concerning function of a a socket
#5
The Python sockets module is a tin wrapper around C Socktes. It's a little bit abstracted.
A server and a client use the same method to create a socket (Adress family, Protocol, Flags)
After the socket creation you decide to bind, if you want to be a server or connect if you're
a tcp-client. If you're using udp, then use sendto as client. UDP is connections less.

If you use C, all this methods are functions, which returns a file-descriptor or error code.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Question concerning function of a a socket - by pkm - Jan-17-2019, 06:25 PM
RE: Question concerning function of a a socket - by DeaD_EyE - Jun-04-2019, 07:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  socket.connect question about parenthesis pace 1 2,397 Jan-30-2021, 08:17 AM
Last Post: Gribouillis
  Function that searches and shows all socket hosts shaanukstar123 1 2,189 Jan-30-2020, 05:52 PM
Last Post: Gribouillis
  UDP Socket Basic question zeeshannnetwork 2 3,153 Sep-10-2018, 02:25 AM
Last Post: zeeshannnetwork
  Raw socket sendto function errors IronReign 5 6,545 Jul-09-2017, 04:46 PM
Last Post: Blue Dog

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020