PDA

View Full Version : سوال: socket programing سی شارپ- iocontrol



ghoomes
سه شنبه 16 اسفند 1390, 11:53 صبح
سلام.
سوکت یه متد داره به اسم IOControl ....
اگه دوستان اطلاعاتی در مورد این متد دارن بگن، ممنون میشم. من فقط میدونم که برای کارای سطح پایین استفاده میشه.

Pouyan2010
سه شنبه 16 اسفند 1390, 12:56 عصر
توی Object Browse یه چنین چیزی نوشته: ببین کمکت می کنه

public int IOControl(System.Net.Sockets.IOControlCode ioControlCode, byte[ ] optionInValue, byte[ ] optionOutValue)
Member of System.Net.Sockets.Socket

Summary:
Sets low-level operating modes for the System.Net.Sockets.Socket using the System.Net.Sockets.IOControlCode enumeration to specify control codes.

Parameters:
ioControlCode: A System.Net.Sockets.IOControlCode value that specifies the control code of the operation to perform.
optionInValue: An array of type System.Byte that contains the input data required by the operation.
optionOutValue: An array of type System.Byte that contains the output data returned by the operation.

Return Values:
The number of bytes in the optionOutValue parameter.

ghoomes
سه شنبه 16 اسفند 1390, 16:43 عصر
اینو تو msdn دیده بودم ولی نمیفهمم optionInValue و OptionOutValue چی هستن...(مشکل دقیقا همینجاست)