利用“原始套接字”(Raw Socket),我們可訪問位于基層的傳輸協議。本章專門講解如
何運用這種原始套接字,來模擬I P的一些實用工具,比如Tr a c e r o u t e和P i n g程序等等。使用原
始套接字,亦可對I P頭信息進行實際的操作。本章只關心I P協議;至于如何針對其他協議使
用原始套接字,我們不打算提及。而且,大多數協議(除AT M以外)根本就不支持原始套接
字。所有原始套接字都是使用S O C K _ R AW這個套接字類型來創建的,而且目前只有Wi n s o c k
2提供了對它的支持。因此,無論Microsoft Windows CE 還是老版本的Windows 95 (無
Winsock 2升級)均不能利用原始套接字的能力。
光學設計軟件zemax源碼:
This DLL models an nular aspheric
surface as described in:
"Annular surfaces in annular field systems"
By Jose M. Sasian
Opt. eng. 36 (12) P 3401-3401 December 1997
This surface is essentially an odd aspheric surface with an offset in the aspheric terms.
The sag is given by:
Z = (c*r*r) / (1+(1-((1+k)*c*c*r*r))^ 1/2 ) + a*(r-q)^2 + b*(r-q)^3 + c*(r-q)^4 + ...
Note the terms a, b, c, ... have units of length to the -1, -2, -3, ... power.
收SP下行消息
A. 啟動MMSC偵聽端口
在模擬器界面的右下角的"Liten Port"文本框中輸入MMSC的偵聽端口,這個值是為接收SP發出的下行消息提供服務的端口號,比如:"8080",按下"Start"按鈕啟動MMSC偵聽服務。
B. 接收消息
接收的是從SP(API)發來的消息,處理后回一條響應消息。
2 模擬MMSC向SP發送上行消息
A. 選擇模擬器左邊界面的MessageType為“DeliverReq”;
B. “Send To”文本框中輸入SP的上行地址,例如http://10.164.50.29:8888;
C. 在界面中選擇輸入其他需要的字段,然后點擊“Send”按紐即可向SP上行地址發送上行消息。
3 模擬MMSC向SP發送遞送報告消息
A. 選擇模擬器左邊界面的MessageType為“DeliverReportReq”;
B. “Send To”文本框中輸入SP的上行地址,例如http://10.164.50.29:8888;
C. 在界面中選擇輸入其他需要的字段,然后點擊“Send”按紐即可向SP上行地址發送遞送報告消息。
4 模擬MMSC向SP發送閱讀報告消息
A. 選擇模擬器左邊界面的MessageType為“ReadReportReq”;
B. “Send To”文本框中輸入SP的上行地址,例如http://10.164.50.29:8888;
C. 在界面中選擇輸入其他需要的字段,然后點擊“Send”按紐即可向SP上行地址發送閱讀報告消息
C# BigInteger class. BigInteger.cs is a csharp program. It is the BIgInteger class. It has methods: abs() , FermatLittleTest(int confidence) ,gcd(BigInteger bi) , genCoPrime(int bits, Random rand) , genPseudoPrime(int bits, int confidence, Random rand) , genRandomBits(int bits, Random rand) , isProbablePrime(int confidence) , isProbablePrime() , Jacobi(BigInteger a, BigInteger b) , LucasSequence(BigInteger P, BigInteger Q, BigInteger k, BigInteger n) ,max(BigInteger bi) , min(BigInteger bi) , modInverse(BigInteger modulus) , RabinMillerTest(int confidence) ,