BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 30th, 2008, 08:40 AM
jgsprasad jgsprasad is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 1 jgsprasad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 45 sec
Reputation Power: 0
Recvmsg to read only control information ,without reading any data

Hi,

I was trying to figure out the process id of the client process using SO_PASSCRED socket option on the server socket. The pid would be read as control information in recvmsg.

But I have a problem. I want to get this information only once, when a client connects to the server for the first time. The read api, I have does a read every time some data is written on the socket.

Is there a way to call recvmsg just to read the SCM_CREDENTIALS control information without reading any data i.e. can we pass msg_iov as null, msg_iovlen = 0 and just set msg_control and msg_controllen.

Thanks in advance..

-Prasad

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Recvmsg to read only control information ,without reading any data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway