9.0
Table Of Contents
- VMCI Sockets Programming Guide
- Contents
- About This Book
- About VMCI Sockets
- Porting to VMCI Sockets
- Creating Stream VMCI Sockets
- Creating Datagram VMCI Sockets
- Security of the VMCI Device
- Appendix: Learning More About Sockets
- Index
VMware, Inc. 3
Contents
AboutThisBook 5
1 AboutVMCISockets 7
IntroductiontoVMCISockets 7
PreviousVMCIReleases 7
HowVMCISocketsWork 7
PersistenceofSockets 8
SocketProgramming 8
FeaturesinSpecificVMwareReleases 8
EnablingandFindingVMCISockets 8
LocationofIncludeFileforCPrograms 8
SecurityofVMCISockets 9
UseCasesforVMCISockets 9
RabbitMQwithStreamVMCISockets 9
NetworkStoragewithDatagramVMCISockets 10
2 PortingtoVMCISockets 11
PortingExistingSocketApplications 11
IncludeaNewHeaderFile 11
ChangeAF_INETtoVMCISockets 11
ObtaintheCID 11
TheVMCISock_GetLocalCID()Function 11
Connection‐OrientedStreamSocket 12
ConnectionlessDatagramSocket 12
InitializingtheAddressStructure 12
CommunicatingBetweenHostandGuest 12
VMCISocketsandNetworking 12
SettingUpaNetworklessGuest 12
3 CreatingStreamVMCISockets 13
StreamVMCISockets 13
PreparingtheServerforaConnection 14
Socket()Function 14
SetandGetSocketOptions 14
Bind()Function 15
Listen()Function 15
Accept()Function 15
Select()Function 15
Recv()Function 16
Send()Function 16
Close()Function 16
Poll()Information 16
Read()andWrite() 16
Getsockname()Function 16
HavingtheClientRequestaConnection 17
Socket()Function 17
Connect()Function 17
Send()Function 17