iPhone_PeerToPeer - アールメカブ

アールメカブ


iPhone_PeerToPeer

iPhone_Dev

ここここによれば、

SDK 3.0 から Bluetooth を利用した Peer To Peer の接続が可能らしい。

Just saw a sample source code from the apple dev forum to sharing the testing the p2p bluetooth What you need to do is to create a new project from OpenGL ES Application of iPhone OS 3.0 SDK template called it BluetoothSample? and past the codes as below and test, it should work on 2 iPhone 3G and iPod Touch 2nd gen only. Then you need to add GameKit? framework to build and go

BluetoothSampleAppDelegate?.h

   //
   // BluetoothSampleAppDelegate.h
   // BluetoothSample
   //
   #import "EAGLView.h"
   #import <GameKit/GameKit.h>
   @interface BluetoothSampleAppDelegate : NSObject {
   UIWindow *window;
   EAGLView *glView;

BluetoothSampleAppDelegate?.m Select all

   //
   // BluetoothSampleAppDelegate.m
   // BluetoothSample
   //
   #import "BluetoothSampleAppDelegate.h"
   @implementation BluetoothSampleAppDelegate
   @synthesize picker;
   @synthesize session;
 
添付ファイル: fileGKTank.zip 544件 [詳細] filePeerToPeer2.txt 1253件 [詳細] filePeerToPeer.txt 1200件 [詳細]
 
Link: iPhone_Dev(5218d)
Last-modified: 2009-06-22 (月) 21:36:32 (5411d)