STUCK IN A SYNTAX OF UNIX SOCKET PROGROMMING

10 views
Skip to first unread message

Divyansh Shukla

unread,
Aug 5, 2019, 4:45:55 PM8/5/19
to Linux Users Group
Can someone please explain me what does this (struct sockaddr*)&serveraddr mean in CONNECT system call in the following code. I'm reading this syntax for the first time, can someone explain?
WhatsApp Image 2019-08-06 at 1.11.16 AM.jpeg

Jeremiah Bess

unread,
Aug 5, 2019, 4:48:30 PM8/5/19
to LUG
This isn't actually anything Linux specific, as that code is used in C/C#/C++. Here's a quick article about C sockets, https://www.geeksforgeeks.org/socket-programming-cc/. If you need anything more in-depth then it's probably best to ask in a programming group.

Jeremiah Bess


On Mon, Aug 5, 2019 at 2:45 PM Divyansh Shukla <honeysh...@gmail.com> wrote:
Can someone please explain me what does this (struct sockaddr*)&serveraddr mean in CONNECT system call in the following code. I'm reading this syntax for the first time, can someone explain?

--
--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxus...@googlegroups.com
To unsubscribe, send email to linuxusersgro...@googlegroups.com
For more options, visit our group at http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
---
You received this message because you are subscribed to the Google Groups "Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linuxusersgro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linuxusersgroup/694ef598-f03e-4c46-ba4a-28117a7d61ff%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages